<?php
/**
 * Class descript.
 * User: chan
 * Date: 2017/10/20 11:22
 */

namespace app\api\controller;
class Member extends Base
{
    //检查权限作用域
    protected $beforeActionList  = [
        'checkPrimaryScope' => [
            'except' => ''
        ],
    ];


    /**
     * 个人中心
     */
    public function index()
    {
        $result =  (new \app\api\logic\Member())->index();
        return $this->ajaxReturn($result);
    }
    /**
     * 加盟合作
     */
    public function join()
    {
        $result =  (new \app\api\logic\Member())->join();
        return $this->ajaxReturn($result);
    }
    /**
     * 立即入驻
     */
    public function settled()
    {
        $result =  (new \app\api\logic\Member())->settled();
        return $this->ajaxReturn($result);
    }
    /**
     * 申请入驻
     */
    public function apply()
    {
        $result =  (new \app\api\logic\Member())->apply();
        return $this->ajaxReturn($result);
    }
    /**
     * 上传身份证
     */
    public function uploadimage()
    {
        $result =  (new \app\api\logic\Member())->uploadimage();
        return $this->ajaxReturn($result);
    }
    /**
     * 我的收藏
     */
    public function mycollect()
    {
        $result =  (new \app\api\logic\Member())->mycollect();
        return $this->ajaxReturn($result);
    }
    /**
     * 绑定手机
     */
    public function bind()
    {
        $result =  (new \app\api\logic\Member())->bind();
        return $this->ajaxReturn($result);
    }
    /**
     * 收货地址列表
     */
    public function address_list()
    {
        $result =  (new \app\api\logic\Member())->address_list();
        return $this->ajaxReturn($result);
    }
    /**
     * 添加修改收货地址
     */
    public function address_edit()
    {
        $result =  (new \app\api\logic\Member())->address_edit();
        return $this->ajaxReturn($result);
    }
    /**
     * 设置默认收货地址
     */
    public function address_setdefault()
    {
        $result =  (new \app\api\logic\Member())->address_setdefault();
        return $this->ajaxReturn($result);
    }
    /**
     * 删除收货地址
     */
    public function address_del()
    {
        $result =  (new \app\api\logic\Member())->address_del();
        return $this->ajaxReturn($result);
    }
    /**
     * 查询省市区
     */
    public function address_query()
    {
        $result =  (new \app\api\logic\Member())->address_query();
        return $this->ajaxReturn($result);
    }
    /**
     * 订单收货地址
     */
    public function order_address(){
        $result =  (new \app\api\logic\Member())->order_address();
        return $this->ajaxReturn($result);
    }
}